import request from '@/utils/request'

// 查询退料列表
export function listReturnMaterials_detail(query) {
  return request({
    url: '/returnMaterials_detail/returnMaterials_detail/list',
    method: 'get',
    params: query
  })
}

// 查询退料详细
export function getReturnMaterials_detail(id) {
  return request({
    url: '/returnMaterials_detail/returnMaterials_detail/' + id,
    method: 'get'
  })
}

// 新增退料
export function addReturnMaterials_detail(data) {
  return request({
    url: '/returnMaterials_detail/returnMaterials_detail',
    method: 'post',
    data: data
  })
}

// 修改退料
export function updateReturnMaterials_detail(data) {
  return request({
    url: '/returnMaterials_detail/returnMaterials_detail',
    method: 'put',
    data: data
  })
}

// 删除退料
export function delReturnMaterials_detail(id) {
  return request({
    url: '/returnMaterials_detail/returnMaterials_detail/' + id,
    method: 'delete'
  })
}
